
public class Square {
	/**
	 * Square
	 * Called by the Board Class
	 * square is the object or grid on the game board
	 * square holds data on hits and misses
	 * 
	 * @author Larry Savago
	 * @author Casey Huckins
	 * @date 4/13/2012
	 */

	
	private int rowId = 0;
	private int colId = 0;

	public Square() {
		
	}
	public void setId(int row, int col) {
		rowId = row;
		colId = col;
	}
	
	public int[] getId() {
		int[] x = {rowId, colId};
		return x;
	}
	
	
	public String toString() {
		String s = "|" + (rowId+1)+","+(colId+1) + "|";
		
		return s;
		
	}
}
